import {get,post,_delete} from "./http";

// 增
export const addSinger = (params) => post(`singers/`,params);

//删
export const delSinger = (id) =>_delete(`singers/${id}`);

export const batchDelSinger = (ids) =>post(`singers/batch_delete`, ids);
//改
export const updateSinger = (params) => post('singers/updateSinger', params);

//查
export const querySinger = (pageNo, pageSize, name) => get(`singers/query?pageNo=${pageNo}&pageSize=${pageSize}&name=${name}`);

export const getAllSinger = () => get("singers/");

export const singerSize = (name) => get(`singers/sizes?name=${name}`);

// todo  :根据性别查询     根据主键查询
